package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 附件
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Data
@Accessors(chain = true)
@TableName("cgnci_accessory")
@ApiModel(value = "CgnciAccessoryDO对象", description = "附件")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CgnciAccessoryDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增编号")
    @TableId(value = "acc_id", type = IdType.ASSIGN_ID)
    private Long accId;

    @ApiModelProperty("业务编号(关联业务表主键id)")
    private Long businessId;

    @ApiModelProperty("业务号")
    private String businessNo;

    @ApiModelProperty("业务类型（根据业务自定义业务类型进行区分）")
    private String businessType;

    @ApiModelProperty("文件类型")
    private String accType;

    @ApiModelProperty("上传节点")
    private String uploadNode;

    @ApiModelProperty("附件云编号")
    private String fileId;

    @ApiModelProperty("附件名称")
    private String fileName;

    @ApiModelProperty("附件类型")
    private String fileType;

    @ApiModelProperty("有效起期")
    private Date startTime;

    @ApiModelProperty("有效止期")
    private Date endTime;

    @ApiModelProperty("上传时间")
    private Date uploadTime;

    @ApiModelProperty("状态（0：失败，1：成功）")
    private String status;

    @ApiModelProperty("操作结果描述")
    private String msg;

    @ApiModelProperty("删除标志位（0：未删除，1：已删除）")
    private Integer dr;

    @ApiModelProperty("业务是否可删除(0-否,1-是),码表值:isYes")
    private String isDel;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
